package com.xz.knowledgeDuplication.pattern.factory.method_factory;

import lombok.Data;

/**
 * 咖啡店
 *
 * @author 召
 * @date 2022-03-02 21:31:00
 */
@Data
public class CoffeeStore {

    private CoffeeFactory coffeeFactory;

    public Coffee orderCoffee() {
        Coffee coffee = coffeeFactory.createCoffee();
        coffee.getName();
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }

}
